package org.darkforest.vo;

import org.darkforest.common.util.Page;
import org.darkforest.common.util.SystemConstant;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2017/5/15.
 */
public class MemberConsumptionStatisticVo extends Page<MemberConsumptionStatisticVo> {

    private Integer memberId;

    private String memberName;

    private Integer memberLevel;

    private String memberLevelInfo;         //会员等级信息

    private Integer orderCount;

    private BigDecimal orderAmount;

    private Integer orderGoodsCount;


    private Integer startTime;

    private Integer endTime;

    private String startTimeStr;

    private String endTimeStr;

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "MemberConsumptionStatisticVo{" +
                "orderGoodsCount=" + orderGoodsCount +
                ", orderAmount=" + orderAmount +
                ", orderCount=" + orderCount +
                ", memberLevel=" + memberLevel +
                ", memberName='" + memberName + '\'' +
                ", memberId=" + memberId +
                '}';
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public void setMemberLevelInfo(String memberLevelInfo) {
        this.memberLevelInfo = memberLevelInfo;
    }
    public String getMemberLevelInfo(){
        if (memberLevel==null)
            return "";
        if( memberLevel == SystemConstant.MEMBER_LEVEL_ONE)
            return "V1";
        else if( memberLevel == SystemConstant.MEMBER_LEVEL_TWO)
            return "V2";
        else if( memberLevel == SystemConstant.MEMBER_LEVEL_THREE)
            return "V3";
        else if( memberLevel == SystemConstant.MEMBER_LEVEL_FOUR)
            return "V4";
        else if( memberLevel == SystemConstant.MEMBER_LEVEL_FIVE)
            return "V5";
        else
            return "V0";
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getOrderGoodsCount() {
        return orderGoodsCount;
    }

    public void setOrderGoodsCount(Integer orderGoodsCount) {
        this.orderGoodsCount = orderGoodsCount;
    }
}
